﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LoveEat.Domain.Goods
{
    /// <summary>
    /// 商品表
    /// </summary>
    public class GoodsModel
    {
        [Key]
        /// <summary>
        /// 商品编号主键ID
        /// </summary>
        public int GoodsId { get; set; }
        /// <summary>
        /// 商品名称(外键)
        /// </summary>
        public int GoodsNameId { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string Production {  get; set; }
        /// <summary>
        /// 保质期（天）
        /// </summary>
        public int LifeDay { get; set; }
        /// <summary>
        ///  生产许可证号
        /// </summary>
        public string Pronumber {  get; set; }
        /// <summary>
        /// 上产企业
        /// </summary>
        public string ProCommand {  get; set; }
        /// <summary>
        /// 封面图（图片上传）
        /// </summary>
        public string Path {  get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public string Information { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName {  get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime {  get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName {  get; set; }
        /// <summary>
        /// 逻辑删除列
        /// </summary>
        public bool IsDelete {  get; set; }
        /// <summary>
        /// 养殖主键ID（外键）默认值
        /// </summary>
        public int AquacultureId {  get; set; }
        /// <summary>
        /// 屠宰主键ID（外键）默认值
        /// </summary>
        public int slaughterId {  get; set; }
        /// <summary>
        /// 深加工主键ID（外键）默认值
        /// </summary>
        public int DeepId { get; set; }
    }
}
